﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Models.Event>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Create</h2>
        <p>
            Enter basic details about the event here. Speakers and sponsors can be added after the event is created.
        </p>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm())
       {%>
    <table>
        <%= Html.ValidatedEditorFor(model => model.Name)%>
        <%= Html.ValidatedEditorFor(model => model.StartDate)%>
        <%= Html.ValidatedEditorFor(model => model.EndDate)%>
        <tr>
            <td>
                Start Time
            </td>
            <td>
                <%= Html.TimeSelector("startTime","6",":00") %>
            </td>
        </tr>
        <tr>
            <td>
                End Time
            </td>
            <td>
                <%= Html.TimeSelector("endTime","8",":30") %>
            </td>
        </tr>
        <tr>    
            <td>
                <%= Html.LabelFor(model => model.LocationId) %>
            </td>
            <td>
                <%= Html.NullableDropDownListFor(model => model.LocationId, "Locations", "LocationId", "Name", true)%>
                <%= Html.ValidationMessageFor(model => model.LocationId) %>
            </td>
        </tr>
        <%= Html.ValidatedCkEditorFor(model => model.Description)%>
        <tr>
            <td>
            </td>
            <td>
                <input type="submit" value="Submit" />
            </td>
        </tr>
    </table>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>
